/// 定时器数据源
class Ticker {
  /// 定时器数据源
  /// @param ticks 时间
  Stream<int> tick({int ticks}) {
    print(ticks);
    return Stream.periodic(Duration(seconds: 1), (x) =>ticks - x - 1).take(ticks);
  }
}
